﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
/// <summary>
/// 
/// </summary>
public partial class _Default : System.Web.UI.Page
{
    public const int BEGIN = 1;
    private int a = 2;  //作用于整个对象
    protected void Page_Load(object sender, EventArgs e)
    {
        int b = 3;//局部变量
        Debug.Write("在Debug模式下，显示调试窗口");
        Response.Write("常量" + BEGIN+"<br>");
        Response.Write("变量" + a + "<br>");
        for (int i = 0; i < b; i++)
        {
            //i就是块级变量
        }
        
    }
}